/* 导入共享样式 */
@import url('../common/reset.css');
@import url('../common/variables.css');
@import url('../components/buttons.css');
@import url('../components/forms.css');
@import url('../components/alerts.css');

/* 全局样式 */
:root {
    --primary-color: #4c6ef5;
    --primary-light: #e7eaff;
    --secondary-color: #5e60ce;
    --success-color: #40c057;
    --warning-color: #fcc419;
    --danger-color: #fa5252;
    --info-color: #15aabf;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --body-bg: #f5f7fb;
    --sidebar-bg: #ffffff;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --border-radius: 0.375rem;
    --transition-speed: 0.3s;
}

/* 页面整体布局 */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--body-bg);
}

/* 主内容区布局 - 与仪表盘保持一致 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease;
}

.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* 页面内容 */
.content {
    padding: 2rem;
}

/* 操作区域 */
.actions-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    font-size: 0.9rem;
    min-width: 120px;
}

/* 表格样式 */
.table-container {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.data-table th {
    background-color: var(--color-bg-light);
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background-color: var(--color-bg-hover);
}

.data-table .patient-name {
    display: flex;
    align-items: center;
}

.data-table .patient-name span {
    margin-left: 10px;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.status-badge.inactive {
    background-color: var(--color-warning-light);
    color: var(--color-warning);
}

.status-badge.waiting {
    background-color: var(--color-info-light);
    color: var(--color-info);
}

.status-badge.discharged {
    background-color: var(--color-secondary-light);
    color: var(--color-secondary);
}

.actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

/* 分页控件 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    font-weight: 500;
}

.pagination-number.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.pagination-number:hover:not(.active) {
    background-color: var(--color-bg-hover);
}

.pagination-ellipsis {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .actions-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
}

 